package com.beauty.dressing.common.bean;


import com.framework.common.utils.IJsonUtil;

import org.json.JSONObject;

import java.io.Serializable;

public class SearchHotBean extends BaseBean implements Serializable {

	public int id;
	public String name;
	public int isFocus=0;//0表示不高亮，1表示高亮
	public int searchCount;

	public SearchHotBean() {
	}

	public SearchHotBean(String name) {
		this.name = name;
	}

	public SearchHotBean(int id, String name, int isFocus, int searchCount) {
		this.id = id;
		this.name = name;
		this.isFocus = isFocus;
		this.searchCount = searchCount;
	}

	public void parse(JSONObject json) {
		if (json == null) {
			return;
		}

		id = IJsonUtil.getInt("id",json);
		name = IJsonUtil.getString("name",json);
		searchCount = IJsonUtil.getInt("searchCount",json);
		isFocus = IJsonUtil.getInt("isFocus",json);
	}

	@Override
	public String toString() {
		return "SearchHotBean{" +
				"id=" + id +
				", name='" + name + '\'' +
				", isFocus=" + isFocus +
				", searchCount=" + searchCount +
				'}';
	}
}
